#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/msg.h>
#include <sys/ipc.h>

#define MSGKEY 75

struct nsgform
{
    long mtype ;
    char mtex[1000];
}msg;

int msgqid;

void client()
{
    int i;
    msgqid = msgget(MSGKEY, 0777);
    for(i = 5; i >= 1; i--)
    {
        msg.mtype = i;
        msgsnd(msgqid, &msg, 1024, 0);
        printf("client send \n");
    }
    exit(0);
}

int main()
{
    client();
    return 0;
}